import request from '@/utils/request'

// 查询方案明细列表
export function listBaFanganDetail(query) {
  return request({
    url: '/sycs/baFanganDetail/list',
    method: 'get',
    params: query
  })
}

// 查询方案明细详细
export function getBaFanganDetail(fanganId) {
  return request({
    url: '/sycs/baFanganDetail/' + fanganId,
    method: 'get'
  })
}

// 新增方案明细
export function addBaFanganDetail(data) {
  return request({
    url: '/sycs/baFanganDetail',
    method: 'post',
    data: data
  })
}

// 修改方案明细
export function updateBaFanganDetail(data) {
  return request({
    url: '/sycs/baFanganDetail',
    method: 'put',
    data: data
  })
}

// 删除方案明细
export function delBaFanganDetail(fanganId) {
  return request({
    url: '/sycs/baFanganDetail/' + fanganId,
    method: 'delete'
  })
}
